//
//  ShopInfoViewCtrl.m
//  howcan
//
//  Created by apple on 4/15/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "ShopInfoViewCtrl.h"
#import "DirectShowCamViewController.h"
#import "ReviewListViewCtrl.h"
#import "ReviewAddViewCtrl.h"

@implementation ShopInfoViewCtrl

@synthesize shopid;
@synthesize mToolbar;

- (void)dealloc {
    [mToolbar release];
	[super dealloc];
}

-(IBAction)act_menu:(id)sender {
	mToolbar.hidden = !mToolbar.hidden;
}

-(IBAction)act_camera:(id)sender {
	DirectShowCamViewController *_viewCtrl = [[DirectShowCamViewController alloc]init];
	[self.navigationController pushViewController:_viewCtrl animated:YES];
	[_viewCtrl release];
}

-(IBAction)act_reviewlist:(id)sender {
	ReviewListViewCtrl *_viewCtrl = [[ReviewListViewCtrl alloc]init];
	_viewCtrl.shopid = self.shopid;
	[self.navigationController pushViewController:_viewCtrl animated:YES];
	[_viewCtrl release];
}

-(IBAction)act_addreview:(id)sender {
	ReviewAddViewCtrl *_viewCtrl = [[ReviewAddViewCtrl alloc]init];
	_viewCtrl.shopid = self.shopid;
	[self.navigationController pushViewController:_viewCtrl animated:YES];
	[_viewCtrl release];	
}


	
/*
 // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
        // Custom initialization
    }
    return self;
}
*/


// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
}


/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
}



@end
